package com.zhijian.medical.entity.vo.response;

import com.zhijian.medical.entity.po.RoutineSampleArchive;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Api("归档返回结果")
public class RoutineSampleArchiveVo extends RoutineSampleArchive {

    /**
     * 常规病理号
     */
    @ApiModelProperty("常规病理号")
    private String conventionPathologyNumber;

    /**
     * 任务来源
     */
    @ApiModelProperty("任务来源")
    private String taskSource;

    /**
     * 切片号/蜡块号
     */
    @ApiModelProperty("切片号/蜡块号")
    private String number;

    /**
     * 切片归档状态
     * @return 切片归档状态值
     */
    public String getStatusStr(){
        if (super.getState() != null){
            if (super.getState() == 0){
                return "未归档";
            }
            if (super.getState() == 1){
                return "已归档";
            }
            if (super.getState() == 2){
                return "已出借";
            }
        }
        return "";
    }
}
